<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>avalon: NetBus Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">avalon
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_net_bus-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">NetBus Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>消息总线类  
 <a href="#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="netbus_8h_source.html">netbus.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a916098b510591da35b396267c2c9c574" id="r_a916098b510591da35b396267c2c9c574"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a916098b510591da35b396267c2c9c574">setHost</a> (const std::string &amp;host=&quot;localhost&quot;)</td></tr>
<tr class="memdesc:a916098b510591da35b396267c2c9c574"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置RabbitMQ连接的主机信息  <br /></td></tr>
<tr class="separator:a916098b510591da35b396267c2c9c574"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aece284aa9bad59e420d4d996054d5622" id="r_aece284aa9bad59e420d4d996054d5622"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aece284aa9bad59e420d4d996054d5622">setPort</a> (uint port=5672)</td></tr>
<tr class="memdesc:aece284aa9bad59e420d4d996054d5622"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置RabbitMQ连接的端口号  <br /></td></tr>
<tr class="separator:aece284aa9bad59e420d4d996054d5622"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa397dad126a7ef720941ec74246a442d" id="r_aa397dad126a7ef720941ec74246a442d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa397dad126a7ef720941ec74246a442d">setUsername</a> (const std::string &amp;username=&quot;guest&quot;)</td></tr>
<tr class="memdesc:aa397dad126a7ef720941ec74246a442d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置RabbitMQ连接的用户名  <br /></td></tr>
<tr class="separator:aa397dad126a7ef720941ec74246a442d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1af01e75a40f6871e156528aebc035c" id="r_ae1af01e75a40f6871e156528aebc035c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae1af01e75a40f6871e156528aebc035c">setPassword</a> (const std::string &amp;password=&quot;guest&quot;)</td></tr>
<tr class="memdesc:ae1af01e75a40f6871e156528aebc035c"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置RabbitMQ连接的密码  <br /></td></tr>
<tr class="separator:ae1af01e75a40f6871e156528aebc035c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2648948b3505f7ce758fd574730a0f82" id="r_a2648948b3505f7ce758fd574730a0f82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2648948b3505f7ce758fd574730a0f82">setThreadNum</a> (int thread_num=4)</td></tr>
<tr class="memdesc:a2648948b3505f7ce758fd574730a0f82"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置NetBus使用的线程数量  <br /></td></tr>
<tr class="separator:a2648948b3505f7ce758fd574730a0f82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6e84fe0101615c5a277fd8dcec69d1b" id="r_ad6e84fe0101615c5a277fd8dcec69d1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad6e84fe0101615c5a277fd8dcec69d1b">start</a> ()</td></tr>
<tr class="memdesc:ad6e84fe0101615c5a277fd8dcec69d1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">启动NetBus，初始化并开始工作  <br /></td></tr>
<tr class="separator:ad6e84fe0101615c5a277fd8dcec69d1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa65e7a7f54e20e2fbab64c157157b19f" id="r_aa65e7a7f54e20e2fbab64c157157b19f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa65e7a7f54e20e2fbab64c157157b19f">addProvider</a> (<a class="el" href="class_provider.html">Provider</a> *provider)</td></tr>
<tr class="memdesc:aa65e7a7f54e20e2fbab64c157157b19f"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一个Provider，每个Provider对应一个RabbitMQ的Queue  <br /></td></tr>
<tr class="separator:aa65e7a7f54e20e2fbab64c157157b19f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa902c4be48109d816a0cf3aeb445119d" id="r_aa902c4be48109d816a0cf3aeb445119d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa902c4be48109d816a0cf3aeb445119d">send</a> (<a class="el" href="class_deliver.html">Deliver</a> *deliver)</td></tr>
<tr class="memdesc:aa902c4be48109d816a0cf3aeb445119d"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送消息，会阻塞等待直到发送成功或超时，超时时返回false  <br /></td></tr>
<tr class="separator:aa902c4be48109d816a0cf3aeb445119d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a922510e0f6fa52fe1d654780b840b966" id="r_a922510e0f6fa52fe1d654780b840b966"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a922510e0f6fa52fe1d654780b840b966">sendAndReceived</a> (<a class="el" href="class_deliver.html">Deliver</a> *deliver)</td></tr>
<tr class="memdesc:a922510e0f6fa52fe1d654780b840b966"><td class="mdescLeft">&#160;</td><td class="mdescRight">发送消息并等待接收回复，会阻塞等待直到发送成功或超时，超时时返回false  <br /></td></tr>
<tr class="separator:a922510e0f6fa52fe1d654780b840b966"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6730ed76cfcb88c0f8c5cb9026511edf" id="r_a6730ed76cfcb88c0f8c5cb9026511edf"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_net_bus.html">NetBus</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6730ed76cfcb88c0f8c5cb9026511edf">GetInstance</a> ()</td></tr>
<tr class="memdesc:a6730ed76cfcb88c0f8c5cb9026511edf"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取NetBus的唯一实例  <br /></td></tr>
<tr class="separator:a6730ed76cfcb88c0f8c5cb9026511edf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>消息总线类 </p>
<p>NetBus类用于管理RabbitMQ连接和消息传递，包括连接池、Provider和Deliver等组件。 </p><dl class="section note"><dt>Note</dt><dd>NetBus类是单例模式，不允许外部实例化，只能通过GetInstance()获取唯一实例。 </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aa65e7a7f54e20e2fbab64c157157b19f" name="aa65e7a7f54e20e2fbab64c157157b19f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa65e7a7f54e20e2fbab64c157157b19f">&#9670;&#160;</a></span>addProvider()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool NetBus::addProvider </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_provider.html">Provider</a> *</td>          <td class="paramname"><span class="paramname"><em>provider</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加一个Provider，每个Provider对应一个RabbitMQ的Queue </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">provider</td><td>Provider对象指针，由调用者管理资源 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>是否添加成功</dd></dl>
<p>向NetBus对象中添加一个Provider。</p>
<p>此函数首先遍历已有的Provider列表，检查是否有与待添加的Provider具有相同appName和subName的Provider。 如果存在相同名称的Provider，则不添加，返回false。 如果不存在相同名称的Provider，则将该Provider添加到列表中，并将其添加到connect_pool_中，最后返回true。</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">provider</td><td>指向要添加的Provider的指针。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>添加成功返回true，否则返回false。 </dd></dl>

</div>
</div>
<a id="a6730ed76cfcb88c0f8c5cb9026511edf" name="a6730ed76cfcb88c0f8c5cb9026511edf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6730ed76cfcb88c0f8c5cb9026511edf">&#9670;&#160;</a></span>GetInstance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_net_bus.html">NetBus</a> * NetBus::GetInstance </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取NetBus的唯一实例 </p>
<dl class="section return"><dt>Returns</dt><dd>NetBus实例指针 </dd></dl>

</div>
</div>
<a id="aa902c4be48109d816a0cf3aeb445119d" name="aa902c4be48109d816a0cf3aeb445119d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa902c4be48109d816a0cf3aeb445119d">&#9670;&#160;</a></span>send()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool NetBus::send </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_deliver.html">Deliver</a> *</td>          <td class="paramname"><span class="paramname"><em>deliver</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>发送消息，会阻塞等待直到发送成功或超时，超时时返回false </p>
<p>发送数据给指定的网络地址</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">deliver</td><td>Deliver对象指针，由调用者管理资源 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>是否发送成功</dd></dl>
<p>该函数负责将数据包发送到网络上的指定地址它使用连接池来处理网络连接， 并利用条件变量来等待数据发送的回应</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">deliver</td><td>包含网络地址和数据的交付对象 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 如果数据成功发送并收到回应 </dd>
<dd>
false 如果数据发送失败或在指定时间内未收到回应 </dd></dl>

</div>
</div>
<a id="a922510e0f6fa52fe1d654780b840b966" name="a922510e0f6fa52fe1d654780b840b966"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a922510e0f6fa52fe1d654780b840b966">&#9670;&#160;</a></span>sendAndReceived()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool NetBus::sendAndReceived </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_deliver.html">Deliver</a> *</td>          <td class="paramname"><span class="paramname"><em>deliver</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>发送消息并等待接收回复，会阻塞等待直到发送成功或超时，超时时返回false </p>
<p>发送请求并等待响应</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">deliver</td><td>Deliver对象指针，由调用者管理资源 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>是否发送成功并接收到回复</dd></dl>
<p>该函数通过网络连接发送请求，并等待响应。它使用连接池来高效管理网络连接。 发送请求后，在指定的时间限制内等待响应。如果在时间限制内收到响应，则返回 true；否则返回 false。</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">deliver</td><td>包含请求信息和响应处理逻辑的 <a class="el" href="class_deliver.html" title="类，用于处理消息的投递。">Deliver</a> 对象 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>如果在指定时间内收到响应，返回 true；否则返回 false </dd></dl>

</div>
</div>
<a id="a916098b510591da35b396267c2c9c574" name="a916098b510591da35b396267c2c9c574"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a916098b510591da35b396267c2c9c574">&#9670;&#160;</a></span>setHost()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NetBus::setHost </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>host</em></span><span class="paramdefsep"> = </span><span class="paramdefval">&quot;localhost&quot;</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置RabbitMQ连接的主机信息 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">host</td><td>主机信息，默认为"localhost" </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae1af01e75a40f6871e156528aebc035c" name="ae1af01e75a40f6871e156528aebc035c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1af01e75a40f6871e156528aebc035c">&#9670;&#160;</a></span>setPassword()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NetBus::setPassword </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>password</em></span><span class="paramdefsep"> = </span><span class="paramdefval">&quot;guest&quot;</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置RabbitMQ连接的密码 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">password</td><td>密码，默认为"guest" </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aece284aa9bad59e420d4d996054d5622" name="aece284aa9bad59e420d4d996054d5622"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aece284aa9bad59e420d4d996054d5622">&#9670;&#160;</a></span>setPort()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NetBus::setPort </td>
          <td>(</td>
          <td class="paramtype">uint</td>          <td class="paramname"><span class="paramname"><em>port</em></span><span class="paramdefsep"> = </span><span class="paramdefval">5672</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置RabbitMQ连接的端口号 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">port</td><td>端口号，默认为5672 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2648948b3505f7ce758fd574730a0f82" name="a2648948b3505f7ce758fd574730a0f82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2648948b3505f7ce758fd574730a0f82">&#9670;&#160;</a></span>setThreadNum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NetBus::setThreadNum </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>thread_num</em></span><span class="paramdefsep"> = </span><span class="paramdefval">4</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置NetBus使用的线程数量 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">thread_num</td><td>线程数量，默认为4 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa397dad126a7ef720941ec74246a442d" name="aa397dad126a7ef720941ec74246a442d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa397dad126a7ef720941ec74246a442d">&#9670;&#160;</a></span>setUsername()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NetBus::setUsername </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>username</em></span><span class="paramdefsep"> = </span><span class="paramdefval">&quot;guest&quot;</span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置RabbitMQ连接的用户名 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">username</td><td>用户名，默认为"guest" </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad6e84fe0101615c5a277fd8dcec69d1b" name="ad6e84fe0101615c5a277fd8dcec69d1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6e84fe0101615c5a277fd8dcec69d1b">&#9670;&#160;</a></span>start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NetBus::start </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>启动NetBus，初始化并开始工作 </p>
<p>启动NetBus服务</p>
<p>该函数负责初始化和启动NetBus的连接池如果连接池尚未创建， 它将根据提供的主机、端口、用户名和密码信息来创建一个新的连接池 并初始化连接池，使其能够处理指定数量的线程 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>E:/avalon/src/libavalon/<a class="el" href="netbus_8h_source.html">netbus.h</a></li>
<li>E:/avalon/src/libavalon/<b>netbus.cpp</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
